package org.xhystudy.rpc.registry.loadbalancer;

import org.apache.curator.x.discovery.ServiceInstance;
import org.xhystudy.rpc.common.ServiceMeta;

import java.util.List;

/**
 * @description: 负载均衡
 * @Author: Xhy
 * @gitee: https://gitee.com/XhyQAQ
 * @copyright: B站: https://space.bilibili.com/152686439
 * @CreateTime: 2023-04-25 11:13
 */
public interface ServiceLoadBalancer<T> {

     ServiceMeta select(List<T> servers, int hashCode);
}
